import { Pipe, PipeTransform } from "@angular/core";

@Pipe({ name: 'formStyle'})
export class FormStylePipe implements PipeTransform  {
  constructor() {}
  transform(value) {
    let result = {}
    try {
      result = JSON.parse(value)
    } catch(e) {
    }
    return result
  }
}